<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<script type="text/javascript">
		// 基本类型
		var num1 = 10;
		var num2 = num1;
		num2 = 5;
		console.log(num1);// 10
		console.log(num2);// 5

		// 引用类型
		var arr1 = [1,2,3];
		var arr2 = arr1;
		arr2.push(4);
		console.log(arr1);// [1,2,3,4]
		console.log(arr2);// [1,2,3,4]

		var arr3 = ['tom','hello','alice',true,20];
		var str = arr3.join('=');
		console.log(str);
	</script>
</head>
<body>

</body>
</html>